<template>
	<view :class="[(pickerValue || pickerValue === 0)? 'active':'', 'input']">{{pickerValue || placeholder }}</view>
</template>

<script>
	export default {
		name: "picker-text",
		props: {
			pickerValue: {
				type: [String, Number]
			},
			placeholder: {
				type: [String, Number],
				default: '请选择'
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.input {
		// padding-left: 56rpx;
		font-weight: 400;
		font-size: 30rpx;
		color: #999999;
		flex: 1;

		&.active {
			color: #000000;
		}
	}
</style>